from ConsolePlayer import ConsolePlayer
from Player import Player
from Deck import Deck
from ConsolePlayer import ConsolePlayer
from IAPlayer import IAPlayer

def play():
    end = False
    players = [Player(ConsolePlayer()), Player(IAPlayer())]
    
    #Repartir
    deck = Deck()
    deck.shuffle()
    for i in range(7):
        for player in players:
            player.deal(deck.draw())
    uncoveredCard = deck.draw()
    
    while(not end):
        for player in players:
            if(player.pickup(uncoveredCard)):
                player.draw(uncoveredCard)
            else:
                player.draw(deck.draw())
            
            uncoveredCard = player.discard()
        